/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.java.service;

import com.java.dao.Theloai1DAO;
import com.java.mapbean.Theloai1;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author quannq
 */
@Service
public class TheLoai1Service extends Theloai1DAO {
    
    public List<Theloai1> getAll() {
        return findAll();
    }
    
    public Theloai1 findId(int id) {
        return findById(id);
    }
    
    public void saveTheLoai1(Theloai1 theloai1) {
        save(theloai1);
    }
    
    public void updateTheloai1(Theloai1 theloai1) {
        update(theloai1);
    }

    public void deleteTheLoai1(Theloai1 theloai1) {
        delete(theloai1);
    }
}
